package com.ihunanren.dao.ibatis.weixin;

import java.sql.SQLException;
import java.util.List;
import java.util.Set;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.google.common.collect.Lists;
import com.ihunanren.dao.pojo.ReplyJokeDO;
import com.ihunanren.dao.weixin.IJokeDao;

/**
 * @author kalman03
 */
public class JokeDao extends SqlMapClientDaoSupport implements IJokeDao {

	@SuppressWarnings("unchecked")
	@Override
	public List<ReplyJokeDO> getJoke(Set<Integer> ids) throws SQLException {
		return getSqlMapClient().queryForList("JokeDao.getJoke",Lists.newArrayList(ids.iterator()));
	}
}
